import { bindActionCreators,combineReducers } from 'redux';

import * as login from './login';
import * as home from './home'
import * as contact from './contactAction'
import * as todo from './TodoAction'

import {
    GetArticleCommentPager,
    AddArticleComment
} from './commentAction';

import {getOrgList} from './orgAction'

export default actioncoll = { login, home, contact, todo, GetArticleCommentPager,AddArticleComment, getOrgList  };

// const action = {
//     login
// }



// const dispatch = name => dispatch => {
//     if (Array.isArray(name)) {
//         let tempActionCreators = {}
//         for (let i = 0; i < name.length; i++) {
//             Object.assign(tempActionCreators, action[name[i]].actionCreators)
//         }
//         return bindActionCreators(tempActionCreators, dispatch)
//     } else {
//         return bindActionCreators(action[name].actionCreators, dispatch)
//     }
// }

//export default { dispatch }